//
//  MDAFNetworkRequestmanager.h
//  dingdang_v2
//
//  Created by lin on 16/1/13.
//  Copyright © 2016年 mac mini. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFHTTPRequestOperationManager.h"
#import "AFHTTPSessionManager.h"

@class AFHTTPRequestOperationManager;

typedef void (^MDAFNetWorkRequestSuccessBlock)(AFHTTPRequestOperation *opreation, id responseObject);

typedef void (^MDAFNetWorkRequestErrorBlock)(AFHTTPRequestOperation *opreation, id responseObject);

typedef void (^MDAFNetWorkRequestFailBlock)(AFHTTPRequestOperation *opreation, id responseObject);

@interface MDAFNetworkRequestmanager : NSObject


+ (AFHTTPRequestOperation*)sendPostRequestWithBaseURL:(NSString*)baseURLStr
                                               AddURL:(NSString*)addURLStr
                                               Params:(id)params
                                         SuccessBlock:(MDAFNetWorkRequestSuccessBlock)successBlock
                                            FailBlock:(MDAFNetWorkRequestFailBlock)failBlock
                                           ErrorBlock:(MDAFNetWorkRequestErrorBlock)errorBlock;

+ (AFHTTPRequestOperation*)sendPostRequestWithAddURL:(NSString*)addURLStr
                                              Params:(id)params
                                        SuccessBlock:(MDAFNetWorkRequestSuccessBlock)successBlock
                                           FailBlock:(MDAFNetWorkRequestFailBlock)failBlock
                                          ErrorBlock:(MDAFNetWorkRequestErrorBlock)errorBlock;



@end
